#ifndef DTR_H_
#define DTR_H_

#include "recbase.h"
#include "rectype.h"
#include "stdffield.h"
#include <string>

namespace opsrc {
    namespace stdf {

        class Dtr : public opsrc::stdf::RecBase
        {
        public:
            Dtr(stdf_rec stdfrec,  int reclen, std::ios::pos_type fileRecFirstBytePosition, int orderindex, endian e, char* buf);
            virtual ~Dtr();
            const StdfField<string> getTextData() const;
            void setTextData(StdfField<string> textdat);
            void readFields(char *buf);

        protected:
            Dtr();

        private:
            StdfField<string> text_dat;
            endian en;
            bool decodeFields;
        };

    } // namespace stdf
}		// namespace opsrc

#endif /*DTR_H_*/
